gl backend: Avoid roundtripping via surface when updloading
authorAlexander Larsson <alexl@redhat.com>
Thu, 24 Sep 2020 14:58:46 +0000 (16:58 +0200)
committerAlexander Larsson <alexl@redhat.com>
Fri, 25 Sep 2020 08:04:48 +0000 (10:04 +0200)
commit90fc671ef8ffcddaf7dac4a2a72c9094f7ef57d3
treea972789aba5e3a527f5ec384d53b9d35caaceb6a
parentc71921a6be34fcad9807bd4c7e5ca5d09616475b
gl backend: Avoid roundtripping via surface when updloading

Do custom uploads rather than using gdk_cairo_surface_upload_to_gl(),
because this way we avoids a roundtrip (memcpy and possibly conversion)
to the cairo image surface format.
gdk/gdkmemorytexture.c
gdk/gdkmemorytextureprivate.h
gsk/gl/gskgldriver.c
gsk/gl/gskgldriverprivate.h
gsk/gl/gskglrenderer.c